package com.vcixp.install.adapter.impl;

import java.util.Map;

import com.vcixp.install.adapter.DbAdapter;

public class PostgreSqlAdapter implements DbAdapter {

	@Override
	public String getDriver() {
		return "org.postgresql.Driver";
	}

	@Override
	public String validation() {
		return "select version()";
	}

	@Override
	public String url(Map<String, String> param) {
		return "jdbc:postgresql://" + param.get(IP) + ":" + param.get(PORT) + "/" + param.get(DBNAME);
	}
}
